const path = require('path')
const resolve = dir => path.join(__dirname, dir)
module.exports = {
    baseUrl: './',
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
        proxy: {
            '/api':{
                target:'http://192.168.1.12:8201',
                changeOrigin:true,
                pathRewrite:{
                    '/api': ''
                }
            }
        }
    },
    chainWebpack: (config) => {
        config.resolve.alias
        .set('@', resolve('src'))
    }
}